//
//  MySegue.m
//  UI_17_homework_Preview_NSFileManage
//
//  Created by li cheng on 16/8/8.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "MySegue.h"

@implementation MySegue
- (void)perform{
    
}
- (instancetype)initWithIdentifier:(NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination{
    self = [super initWithIdentifier:identifier source:source destination:destination];
    if (self) {
        if (source.editing == YES) {
            return self;
        }
        [source.navigationController pushViewController:destination animated:YES];
    }
    return self;
}
@end
